import React from 'react'

import {CompassOutlined, HomeOutlined, VideoCameraOutlined, DesktopOutlined, MoneyCollectOutlined, SoundOutlined, BulbOutlined, BookOutlined, MobileOutlined, CommentOutlined, UserOutlined, Football} from '@ant-design/icons';

export const setting = {


    state: {
        route: [

            {
                path: '/', title: '首页', icon: <HomeOutlined />,
            },

            {
                title: '运营管理', icon: <DesktopOutlined />, path: '/operation',
                children: [
                    {title: '视频管理', icon: <VideoCameraOutlined />, path: '/operation/video',},
                    {title: '系统消息', icon: <SoundOutlined />, path: '/operation/message',},
                    {title: '情报', icon: <BulbOutlined />, path: '/operation/vip-message',},
                    {title: '积分', icon: <BookOutlined />, path: '/operation/point'},
                    {title: '反馈', icon: <BookOutlined />, path: '/operation/feedback'},
                    {title: '话题', icon: <CommentOutlined />, path: '/operation/topic'},
                    {title: '话题评论', icon: <CommentOutlined />, path: '/operation/topic-comments'},
                    {title: '评选活动', icon: <CommentOutlined />, path: '/operation/vote'},
                    {title: '任务', icon: <CompassOutlined />, path: '/operation/task'},
                    {title: '小应预测', icon: <CompassOutlined />, path: '/operation/ai'},
                    {title: '文章', icon: <CompassOutlined />, path: '/operation/article',},
                    {title: '敏感词管理', icon: <CompassOutlined />, path: '/operation/taboo'},
                    {title: '爬虫管理', path: '/operation/spyder'},
                    {title: '官方包厢', path: '/operation/vip-room'},
                    {title: '问卷调查', path: '/operation/question'},
                    {title: '问卷调查1', path: '/operation/question1'},
                ],
            },

            {
                title: '小应预测', icon: <CompassOutlined />, path: '/ai',
                children: [
                    {title: '预测关键字设置', icon: <CompassOutlined />, path: '/ai/ai-keyword'},
                    {title: '预测结果查询', icon: <CompassOutlined />, path: '/ai/ai-result'},
                ]
            },

            {
                title: '方案', icon: <CompassOutlined />, path: '/plan',
                children: [
                    {title: '专家审核名单', icon: <CompassOutlined />, path: '/plan/plan-apply',},
                    {title: '添加审核问题', icon: <CompassOutlined />, path: '/plan/plan-quiz'},
                ]
            },

            {
                title: '用户管理', icon: <UserOutlined />, path: '/user',
                children: [
                    {title: '用户行为统计', path: '/user/user-total',},
                    {title: '注册用户管理', path: '/user/user-list',},
                    {title: '用户统计', path: '/user/visitor-list'},
                    // {title: 'App激活统计', path: '/user/app-activate-list'},
                    {title: '充值会员登陆列表', path: '/user/vip-login-list'},
                    {title: '用户点击统计', path: '/user/hit-count'},
                ]
            },

            {
                title: '财务', path: '/finance',
                children: [
                    {title: '充值', path: '/finance/money'},
                    {title: '礼物', path: '/finance/gift'},
                    {title: '应豆商城', path: '/finance/mall'},
                    {title: '商城订单', path: '/finance/mall-deal'},
                    {title: '提现管理', path: '/finance/withdraw'},
                ]
            },


            {
                title: '一起看', path: '/together',
                children: [
                    {title: '碎片兑换管理', path: '/together/piece'},
                ]
            },

            {
                title: '足球比赛管理', path: '/push',
                children: [
                    {title: '比赛列表', path: '/push/match',},
                    {title: '直播列表', path: '/push/live',},
                    {title: '推送列表', path: '/push/list',},
                    {title: '包厢列表', path: '/push/room',},
                    {title: '球员库', path: '/push/player',},
                    {title: '欧洲杯方案', path: '/push/euro',},
                ]
            },

            {
                title: '篮球比赛管理', path: '/basketball',
                children: [
                    {title: '比赛列表', path: '/basketball/list',},
                    {title: '直播列表', path: '/basketball/live',},
                ]
            },

            {
                title: '手机端', icon: <MobileOutlined />, path: '/app',
                children: [
                    {title: 'App弹窗控制', icon: <MobileOutlined />, path: '/app/modal',},
                    {title: '下载地址管理', path: '/app/download',},
                    {title: '投屏广告', path: '/app/ad',},
                ]
            },

            {
                title: '管理员', icon: <MobileOutlined />, path: '/admin',
            },

            // {
            //     title: '财务管理', icon: <MoneyCollectOutlined />, path: '/finance',
            //     children: [
            //         {title: '金币充值', path: '/finance/putin',},
            //         {title: '服务消费', path: '/finance/service-consume',},
            //         {title: '道具消费', path: '/finance/item-consume',},
            //         {title: '用户提现', path: '/finance/withdraw',},
            //         {title: '账户列表', path: '/finance/account-list',},
            //     ],
            // },

        ],
        type: localStorage.getItem('themeType') || 'dark',
        breadCrumbState: localStorage.getItem('breadCrumb') || false,
        sideCollapse: false,
    },

    reducers: {
        doSideCollapse(state, payload) {
            return {...state, sideCollapse: !state.sideCollapse}
        },
        setupThemeType(state, payload) {
            localStorage.setItem('themeType', payload)
            return {...state, type: payload}
        },
        toggleBreadCrumb(state, payload) {
            localStorage.setItem('breadCrumb', !state.breadCrumbState)
            return {...state, breadCrumbState: !state.breadCrumbState}
        },
    }

}
